<?php
    header('content-type:text/html;charset=utf-8');
	
	$servername = "localhost";  
	$username = "root"; 
	$password = "root"; 
	$dbname = "yunheshop";  
	 
	$conn = new mysqli($servername, $username, $password,$dbname);
	mysqli_set_charset($conn, "utf8");

	if ($conn->connect_error) {
	    die("连接失败: " . $conn->connect_error);
    }  
?>